package com.ruoyi.canteen.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.canteen.mapper.CanteenOrderPrinterLogMapper;
import com.ruoyi.canteen.domain.CanteenOrderPrinterLog;
import com.ruoyi.canteen.service.ICanteenOrderPrinterLogService;

/**
 * 订单打印日志Service业务层处理
 * 
 * @author zhangw
 * @date 2021-12-03
 */
@Service
public class CanteenOrderPrinterLogServiceImpl implements ICanteenOrderPrinterLogService 
{
    @Autowired
    private CanteenOrderPrinterLogMapper canteenOrderPrinterLogMapper;

    /**
     * 查询订单打印日志
     * 
     * @param id 订单打印日志主键
     * @return 订单打印日志
     */
    @Override
    public CanteenOrderPrinterLog selectCanteenOrderPrinterLogById(Long id)
    {
        return canteenOrderPrinterLogMapper.selectCanteenOrderPrinterLogById(id);
    }

    /**
     * 查询订单打印日志列表
     * 
     * @param canteenOrderPrinterLog 订单打印日志
     * @return 订单打印日志
     */
    @Override
    public List<CanteenOrderPrinterLog> selectCanteenOrderPrinterLogList(CanteenOrderPrinterLog canteenOrderPrinterLog)
    {
        return canteenOrderPrinterLogMapper.selectCanteenOrderPrinterLogList(canteenOrderPrinterLog);
    }

    /**
     * 新增订单打印日志
     * 
     * @param canteenOrderPrinterLog 订单打印日志
     * @return 结果
     */
    @Override
    public int insertCanteenOrderPrinterLog(CanteenOrderPrinterLog canteenOrderPrinterLog)
    {
        return canteenOrderPrinterLogMapper.insertCanteenOrderPrinterLog(canteenOrderPrinterLog);
    }

    /**
     * 修改订单打印日志
     * 
     * @param canteenOrderPrinterLog 订单打印日志
     * @return 结果
     */
    @Override
    public int updateCanteenOrderPrinterLog(CanteenOrderPrinterLog canteenOrderPrinterLog)
    {
        return canteenOrderPrinterLogMapper.updateCanteenOrderPrinterLog(canteenOrderPrinterLog);
    }

    /**
     * 批量删除订单打印日志
     * 
     * @param ids 需要删除的订单打印日志主键
     * @return 结果
     */
    @Override
    public int deleteCanteenOrderPrinterLogByIds(Long[] ids)
    {
        return canteenOrderPrinterLogMapper.deleteCanteenOrderPrinterLogByIds(ids);
    }

    /**
     * 删除订单打印日志信息
     * 
     * @param id 订单打印日志主键
     * @return 结果
     */
    @Override
    public int deleteCanteenOrderPrinterLogById(Long id)
    {
        return canteenOrderPrinterLogMapper.deleteCanteenOrderPrinterLogById(id);
    }
}
